var hardpoint = 0;
if keyboard_check_pressed(ord('Z')) 
hardpoint = 0;
if keyboard_check_pressed(ord('X'))
hardpoint = 1;
if keyboard_check_pressed(ord('C'))
hardpoint = 5;
if keyboard_check_pressed(ord('V'))
hardpoint = 3;

var fireside = (hardpoint + objHeroOW.image_index) % 6;

var e1;
var e2;

switch(fireside)
{
    case 0:e1=point_direction(x,y,x+16,y-8)+360;e2=point_direction(x,y,x+16,y+8);break;
    case 1:e1=point_direction(x,y,x,y-32);e2=point_direction(x,y,x+16,y-8);break;
    case 2:e1=point_direction(x,y,x-16,y-8);e2=point_direction(x,y,x,y-32);break;
    case 3:e1=point_direction(x,y,x-16,y+8);e2=point_direction(x,y,x-16,y-8);break;
    case 4:e1=point_direction(x,y,x,y+32);e2=point_direction(x,y,x-16,y+8);break;
    case 5:e1=point_direction(x,y,x+16,y+8);e2=point_direction(x,y,x,y+32);break;
}

var range=e1-e2;
var base=range/10;
var mult=0;
repeat (11)
{
    with (instance_create(x+16,y+16,objBullet))
    {
        direction= (base * mult)+ e2;
        speed = 10;
    }
    mult++;
}